{extend name="index/iframe" /}

{block name="content"}
<form class="layui-form layui-form-my" action="">
    <input type="hidden" name="id" value="{$Think.get.id}">
    <div class="layui-form-item">
        <div class="layui-row">
            <div class="layui-col-md3">
                <div class="layui-block">
                    <label class="layui-form-label">收款人姓名</label>
                    <div class="layui-input-block">
                        <input type="text" value="{$find.contact_man}" name="contact_man" id="contact_man" placeholder="收款人姓名" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-col-md3">
                <div class="layui-block">
                    <label class="layui-form-label">银行账号</label>
                    <div class="layui-input-block">
                        <input type="text" value="{$find.open_account}" name="open_account" id="open_account" placeholder="银行账号" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-row">
            <div class="layui-col-md3">
            <div class="layui-block">
                <label class="layui-form-label">所属银行</label>
                <div class="layui-input-block">
                    <input type="text" value="{$find.open_name}" name="open_name" id="open_name" placeholder="所属银行" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
            <div class="layui-col-md3">
                <div class="layui-block">
                    <label class="layui-form-label">开户银行</label>
                    <div class="layui-input-block">
                        <input type="text" value="{$find.open_bank}" name="open_bank" id="open_bank" placeholder="开户银行" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-row">
            <div class="layui-col-md6">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <textarea name="description" placeholder="请输入备注" class="layui-textarea">{$find.description}</textarea>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn my-btn" lay-submit="" lay-filter="submitBtn" >立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}

{block name="css"}{/block}

{block name="js"}
<script>
    layui.use(['form', 'layedit', 'element'], function(){
        var form = layui.form
            ,$ = layui.$
            ,layer = layui.layer;

        form.on('submit(submitBtn)', function(data){
            var load = layer.load();
            $.post('{:url("AuditCpsMng/edit")}',data.field, function(json){
                layer.close(load);
                json.code==0 ? layer.msg(json.msg, {icon: 1, time: 1000}) : layer.msg(json.msg, {icon: 0, time: 1000});
            }, 'JSON').error(function(){
                layer.close(load);
                layer.msg('连接超时，请联系后台管理员', {icon: 2, time:3000});
            });
            return false;
        });
    });
</script>
{/block}